package com.maomao.admin.persistence.repository;

import com.maomao.admin.domain.system.entry.SysPost;
import com.maomao.admin.domain.system.entry.SysUserPost;
import com.maomao.admin.domain.system.entry.UserPostPk;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysPostRepository extends JpaRepository<SysPost, Long>, JpaSpecificationExecutor<SysPost> {
    List<SysPost> findByPostName(String postName);

    List<SysPost> findByPostCode(String postCode);
}
